package com.hxzy.research.service.pageandmanager.impl;

import com.hxzy.research.mapper.*;
import com.hxzy.research.pojo.*;
import com.hxzy.research.service.pageandmanager.FrontTeach;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FrontTeachImpl implements FrontTeach {
    @Autowired private TblCourseMapper tblCourseMapper;
    @Autowired private TblClassMapper tblClassMapper;
    @Autowired private TblTeacherMapper tblTeacherMapper;
    @Autowired private TblBigitemMapper tblBigitemMapper;
    @Autowired private TblItemMapper tblItemMapper;
    @Autowired private TblSelectvalueMapper tblSelectvalueMapper;
    @Override
    public List<TblCourse> findCourseByid(Integer branchid) {
        return tblCourseMapper.selectCourseByid(branchid);
    }

    @Override
    public List<TblClass> findClassByid(Integer branchid) {
        return tblClassMapper.selectClassByid(branchid);
    }

    @Override
    public List<TblTeacher> findTeacherById(Integer branchid) {
        return tblTeacherMapper.selsctTeacherById(branchid);
    }

    @Override
    public List<TblBigitem> findBigitemByPageid(Integer pageId) {
        return tblBigitemMapper.selectBigitemByPageid(pageId);
    }

    @Override
    public List<TblItem> findItemByBigId(Integer bigId) {
        return tblItemMapper.selectItemByBigId(bigId);
    }

    @Override
    public List<TblSelectvalue> findSelectvalueById(Integer itemid) {
        return tblSelectvalueMapper.selectSelectvalueById(itemid);
    }
}
